package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum DmGyYylxEnum {

    YYLX_PTNZYY("00", "平台内置应用"),

    YYLX_PTYY("01", "平台应用"),

    YYLX_DSFYY("02", "第三方应用");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyYylxEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
